import request from '@/utils/request'

// 发送邮件验证码
export function sendVerificationCodeByMail(data) {
  return request({
    url: '/sms/sendEmailVerCode',
    method: 'post',
    data
  })
}

// 获取验证码
export function sendVerificationCode(data) {
  return request({
    url: '/sms/sendVerCode',
    method: 'post',
    data
  })
}

// 使用手机号登录
export function loginWithMobile(data) {
  return request({
    url: '/login/loginMobile',
    method: 'post',
    data
  })
}
// 获取微信登录二维码
export function getWeChatQrCode(data) {
  return request({
    url: '/wx/getQRCode',
    method: 'post',
    data
  })
}
//获取小程序二维码
export function getMiniProgramQrCode(data) {
  return request({
    url: '/wx/getWxAppQrCode',
    method: 'post',
    data
  })
}
// 使用微信登录票据登录
export function loginWithWeChatTicket(data) {
  return request({
    url: '/login/loginWx',
    method: 'post',
    data
  })
}